<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="gbk">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>太极旋转图</title>
    <style>
        @charset "utf-8";
        @keyframes zhuan {
            0% {
                transform: rotate(0);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .circle {
            position: relative;
            border-radius: 50%;
            border: 2px solid black;
            height: 200px;
            width: 200px;
            overflow: hidden;
            animation: zhuan 5s 5 linear;
        }

        .bai {
            position: relative;
            float: left;
            width: 100px;
            height: 200px;
            background-color: #fff;
        }

        .xiaobai {
            position: absolute;
            width: 100px;
            height: 100px;
            top: 0;
            right: -50px;
            border-radius: 50%;
            background-color: #fff;
            z-index: 5;
        }

        .heidian {
            position: absolute;
            width: 30px;
            height: 30px;
            top: 35px;
            left: 35px;
            border-radius: 50%;
            background-color: #000;
            z-index: 8;
        }

        .hei {
            position: relative;
            float: left;
            width: 100px;
            height: 200px;
            background-color: #000;
            /* border-radius: 50%; */
        }

        .xiaohei {
            position: absolute;
            z-index: 5;
            width: 100px;
            height: 100px;
            bottom: 0;
            left: -50px;
            border-radius: 50%;
            background-color: #000;

        }

        .baidian {
            position: absolute;
            bottom: 35px;
            right: 35px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #fff;
            z-index: 8;
        }
    </style>

</head>

<body>

    <div class="circle">

        <div class="bai" style="color:red">
            <div class="xiaobai">
                <div class="heidian"></div>
            </div>
        </div>

        <div class="hei">
            <div class="xiaohei">
                <div class="baidian"> </div>
            </div>
        </div>

    </div>
</body>

</html>